package com.xt.website.service;

import com.github.pagehelper.PageInfo;
import com.xt.website.po.CategorySecondExt;
import com.xt.website.po.Product;
import com.xt.website.po.ProductExt;
import com.xt.website.po.ProductFile;
import com.xt.website.util.MyPageInfo;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: jiangyu
 * @Date: 2019/8/18 14:07
 * @Description:
 */

public interface ProductService {

    /**
     * 根据一级类目，查询的产品
     */
    MyPageInfo<Product> findProductsByCid(Integer pageNow, Integer cid, Integer pageSize);

    /**
     * 根据二级类目，查询的产品
     */
    MyPageInfo<Product> findProductsByCsid(Integer pageNow,Integer csid);

    /**
     * 查询产品详情
     */
    ProductExt<ProductFile> productDetails(Integer pid);

}
